package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 order_
 *
 * @author ruoyi
 * @date 2021-06-03
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long orderId;

    /** 会员id */
    @Excel(name = "会员id")
    private Long vipId;

    /** 折扣 */
    @Excel(name = "折扣")
    private BigDecimal discount;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal totalPrice;

    /** 理发师 */
    @Excel(name = "理发师")
    private String hairdresser;

    /** 助手 */
    @Excel(name = "助手")
    private String assistant;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;

    /** 订单 */
    private Long[] productIds;

    public List<OrderItem> getOrderItemList() {
        return orderItemList;
    }

    public void setOrderItemList(List<OrderItem> orderItemList) {
        this.orderItemList = orderItemList;
    }

    private List<OrderItem> orderItemList;

    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setVipId(Long vipId)
    {
        this.vipId = vipId;
    }

    public Long getVipId()
    {
        return vipId;
    }
    public void setDiscount(BigDecimal discount)
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount()
    {
        return discount;
    }
    public void setTotalPrice(BigDecimal totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice()
    {
        return totalPrice;
    }
    public void setHairdresser(String hairdresser)
    {
        this.hairdresser = hairdresser;
    }

    public String getHairdresser()
    {
        return hairdresser;
    }
    public void setAssistant(String assistant)
    {
        this.assistant = assistant;
    }

    public String getAssistant()
    {
        return assistant;
    }
    public void setOrderStatus(String orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus()
    {
        return orderStatus;
    }


    public Long[] getProductIds()
    {
        return productIds;
    }

    public void setProductIds(Long[] productIds)
    {
        this.productIds = productIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("vipId", getVipId())
            .append("discount", getDiscount())
            .append("totalPrice", getTotalPrice())
            .append("hairdresser", getHairdresser())
            .append("assistant", getAssistant())
            .append("orderStatus", getOrderStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
